package com.atguigu.spzx.cloud.user.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * projectName: com.atguigu.spzx.cloud.user.properties
 *
 * @author: 赵伟风
 * description:
 */


//@Component //不推荐 方案1： 直接添  【饿汉】
@Data
@ConfigurationProperties(prefix = "ergouzi.user")  //指定前缀读取 类必须再ioc容器中
public class ErgouziProperties {

    private String name;
    private Integer age;
}
